<?php 
	$credentials = Yii::app()->db->createCommand()
	->select('glogin, gpassword')
	->from('tbl_users')
	->where('username=:username', array(':username'=>Yii::app()->user->name))
	->queryRow();
	Yii::app()->CALENDAR->doEvents("update", $_GET['id'], $credentials["glogin"], $credentials["gpassword"]); 
?>